package decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 装饰器模式-第一次装饰
 * @Date: Created in 2021/12/29 11:10
 */
@Slf4j
public class ConcreteDecorate extends Decorate {

    public ConcreteDecorate(Component component) {
        super(component);
    }

    public void method1() {
        log.info("method1");
    }

    @Override
    public void operate() {
        this.method1();
        super.operate();
    }
}
